﻿<UserControl xmlns:my1="clr-namespace:VAdvantage.Controls"  xmlns:my="clr-namespace:SLControls.Controls;assembly=SLControls"  x:Class="VAdvantage.Apps.AForms.VTrxMaterial"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid>
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="45" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="2*" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="2*" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="2*" />
            <ColumnDefinition Width="45" />
            <ColumnDefinition Width="40" />
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="25" />
        </Grid.RowDefinitions>

        <my:VLabel Height="Auto" HorizontalAlignment="Stretch" Margin="0,5,5,0" Name="vlblOrg" VerticalAlignment="Top" Width="Auto" Content="Org" Grid.Column="1" HorizontalContentAlignment="Left" IsEnabled="False" />
<my:VLabel Content="MovType" Height="Auto" HorizontalAlignment="Stretch" Name="vlblMoment" VerticalAlignment="Top" Width="Auto" Grid.Column="3" HorizontalContentAlignment="Left" Margin="0,5,5,0" />
        <my:VLabel Content="D From" Height="Auto" HorizontalAlignment="Left" Margin="0,5,5,0" Name="vlblDateFrom" VerticalAlignment="Top" Width="Auto" Grid.Column="5" HorizontalContentAlignment="Center" />
        <my:VLabel Content="Loc" Height="Auto" HorizontalAlignment="Stretch" Margin="0,5,5,0" Name="vlblLocator" VerticalAlignment="Top" Width="Auto" Grid.Column="1" Grid.Row="1" HorizontalContentAlignment="Left" />
        <my:VLabel Content="Prod" Height="Auto" HorizontalAlignment="Stretch" Margin="0,5,5,0" Name="vlblProduct" VerticalAlignment="Top" Width="Auto" Grid.Column="3" Grid.Row="1" HorizontalContentAlignment="Left" />
        <my:VLabel Content="D To" Height="Auto" HorizontalAlignment="Stretch" Margin="0,5,5,0" Name="vlblDateTo" VerticalAlignment="Top" Width="Auto" Grid.Column="5" Grid.Row="1" HorizontalContentAlignment="Left" />
        <my1:VStatusBar Grid.Row="4" HorizontalAlignment="Stretch" x:Name="vstatusBar" VerticalAlignment="Top" Height="25" Grid.ColumnSpan="9" Width="Auto" />

        <my:VDateTimePicker Grid.Column="6" HorizontalAlignment="Stretch" Margin="0,5,5,0" Name="vdtpFrom" VerticalAlignment="Top" /> <!--ValueChanged="vdtpFrom_ValueChanged" />-->
        <my:VDateTimePicker Grid.RowSpan="1" HorizontalAlignment="Stretch" Margin="0,5,5,0" Name="vdtpTo" VerticalAlignment="Top" Grid.Column="6" Grid.Row="1" /> <!--ValueChanged="vdtpTo_ValueChanged" />-->
       
        <my:VImage Icon="/VAdvantage;component/Images/cancel_up.png" Grid.Column="7" Grid.Row="3" Height="35" HorizontalAlignment="Stretch" Name="vbtnCancel" VerticalAlignment="Top" Width="35" Click="vbtnCancel_Click" Margin="0,5,2,5"></my:VImage>
        <my:VImage Icon="/VAdvantage;component/Images/right_up.png" Grid.Column="8" Grid.Row="3" Height="35" HorizontalAlignment="Stretch" Name="vbtnOK" VerticalAlignment="Top" Width="35" Click="vbtnOK_Click" Margin="0,5,5,5"></my:VImage>
        <my:VImage Icon="/VAdvantage;component/Images/Zoom16.jpg" Grid.Row="3" Height="35" HorizontalAlignment="Left" Name="vbtnZoom" VerticalAlignment="Top" Click="vbtnZoom_Click" Width="35" Grid.ColumnSpan="3" Margin="45,5,5,0" Grid.Column="0" />
        <my:VImage Icon="/VAdvantage;component/Images/refresh32.png" Grid.Row="3" Height="35" HorizontalAlignment="Left" Name="vbtnRefresh" VerticalAlignment="Top" Width="35" Click="vbtnRefresh_Click" Margin="5,5,5,0" />
        <Grid Grid.ColumnSpan="9" Grid.Row="2" Height="Auto" HorizontalAlignment="Stretch" Name="vdgvRecords" VerticalAlignment="Stretch" Margin="5,5,5,0" />
    </Grid>

        <Grid x:Name="busyWindow" Opacity=".4" Background="LightGray" Visibility="Collapsed" MouseLeftButtonDown="busyWindow_MouseLeftButtonDown" ></Grid>
        <TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading...." VerticalAlignment="Center" Foreground="#3A000000"></TextBlock>
    </Grid>
</UserControl>
